package software_construction.PatternProject.d4_observer.demo3.subject;

import software_construction.PatternProject.d4_observer.demo3.observer.AbstractMachine;

import java.util.List;

public class WeatherData {
    private List<AbstractMachine> machineList=null;

    public WeatherData(List<AbstractMachine> machineList) {
        this.machineList=machineList;
    }

    public void measurementsChanged(int temp, int humidity, int windPower) {
        for(AbstractMachine machine:machineList) {
            machine.start(temp,humidity,windPower);
        }
    }

}
